import request from '@/utils/request'

// 取水户基本信息-列表查询
const waterIntakeBaseInfoList = function (params = {}) {
  return request({
    url: '/zy-api/api/waterUsersInfo/getWaterUsersInfoList',
    method: 'post',
    data: params
  })
}

// 根据ID查询-取水户基本信息详情
const waterIntakeBaseInfoDetails = function (params = {}) {
  return request({
    url: '/zy-api/api/waterUsersInfo/getWaterUsersInfoId',
    method: 'post',
    data: params
  })
}

// 取水户基本信息-新增
const addWaterIntakeBaseInfo = function (params = {}) {
  return request({
    url: '/zy-api/api/waterUsersInfo/addWaterUsersInfo',
    method: 'post',
    data: params
  })
}

// 取水户基本信息-修改
const editWaterIntakeBaseInfo = function (params = {}) {
  return request({
    url: '/zy-api/api/waterUsersInfo/updWaterUsersInfo',
    method: 'post',
    data: params
  })
}

// 根据ID查询-监测点列表数据
const monitorStationList = function (params = {}) {
  return request({
    url: '/zy-api/api/waterUsersInfo/getWrMpBList',
    method: 'post',
    data: params
  })
}

// 监测点-新增
const addMonitorStation = function (params = {}) {
  return request({
    url: '/zy-api/api/waterUsersInfo/addWrMpBInfo',
    method: 'post',
    data: params
  })
}

// 监测点-修改
const editMonitorStation = function (params = {}) {
  return request({
    url: '/zy-api/api/waterUsersInfo/updWrMpBInfo',
    method: 'post',
    data: params
  })
}

// 取水户基本信息-列表导出
const exportWaterIntakeBaseInfo = function (params = {}) {
  return request({
    url: '/zy-api/api/waterUsersInfo/exportRegionalWaterIntake',
    method: 'post',
    data: params
  })
}

// 根据ID查询-选择取水许可证下拉数据
const waterPermitList = function (params = {}) {
  return request({
    url: '/zy-api/api/waterUsersInfo/getWaterIntakingPermit',
    method: 'post',
    data: params
  })
}

// 取水许可证详情
const waterPermitDetails = function (params = {}) {
  return request({
    url: '/zy-api/api/commonWaterlicense/getlicense',
    method: 'post',
    data: params,
    params
  })
}

// 取水许获取经纬度
const waterPermitLngLat = function (params = {}) {
  return request({
    url: '/zy-api/api/commonWaterlicense/getlatitude',
    method: 'post',
    data: params,
    params
  })
}

export {
  waterIntakeBaseInfoList,
  waterIntakeBaseInfoDetails,
  addWaterIntakeBaseInfo,
  editWaterIntakeBaseInfo,
  monitorStationList,
  addMonitorStation,
  editMonitorStation,
  exportWaterIntakeBaseInfo,
  waterPermitList,
  waterPermitDetails,
  waterPermitLngLat
}